﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="Web.Register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">

    <link rel="stylesheet" href="/Share/Styles/Account.css" />

    <script type="text/javascript">

        $(function () {
            $("#RadioRoleStudent").click(
                function () {
                    $("#InputsForParent").hide();
                    $("#InputsForStudent").show();
                });

            $("#RadioRoleParent").click(
                function () {
                    $("#InputsForParent").show();
                    $("#InputsForStudent").hide();
                });

            $("#RadioRoleTeacher").click(
                function () {
                    $("#InputsForParent").hide();
                    $("#InputsForStudent").hide();
                });

            $("#RadioRoleTDW").click(
                function () {
                    $("#InputsForParent").hide();
                    $("#InputsForStudent").hide();
                });
        });

    </script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="Main" runat="server">

    <section id="RegisterSection" class="box inset-shadow ">
        
        <header>
            <h3>
                Регистрация
            </h3>
        </header>

        <table class="form">
            <tr>
                <td colspan="3">
                    <div runat="server" id="RegisterFormError" class="form-error" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" AssociatedControlID="TbFio" Text="ФИО" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="TbFio" TextMode="SingleLine" />
                </td>
                <td></td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" AssociatedControlID="TbLogin" Text="Логин" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="TbLogin" />
                </td>
                <td></td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" AssociatedControlID="TbPassword" Text="Пароль" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="TbPassword" TextMode="Password" />
                </td>
                <td></td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" AssociatedControlID="TbEmail" Text="E-mail" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="TbEmail" TextMode="Email" />
                </td>
                <td></td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" Text="Кто вы?" />
                </td>
                <td>
                    <div class="clear-fix">
                        <input runat="server" id="RadioRoleStudent" type="radio" name="Role" alt="Студент" checked="true">
                            <label for="RadioRoleStudent" class="radio-label">Студент</label>
                        </input>
                    </div>
                    <div class="clear-fix">
                        <input runat="server" id="RadioRoleParent" type="radio" name="Role" alt="Родитель">
                            <label for="RadioRoleParent" class="radio-label">Родитель</label>
                        </input>
                    </div>
                    <div class="clear-fix">
                        <input runat="server" id="RadioRoleTeacher" type="radio" name="Role" alt="Преподаватель">
                            <label for="RadioRoleTeacher" class="radio-label">Преподаватель</label>
                        </input>
                    </div>
                    <div class="clear-fix">
                        <input runat="server" id="RadioRoleTDW" type="radio" name="Role" alt="Работник учебного отдела">
                            <label for="RadioRoleTDW" class="radio-label">Работник учебного отдела</label>
                        </input>
                    </div>
                </td>
                <td></td>
            </tr>
            <tr id="InputsForStudent">
                <td>
                    <asp:Label runat="server" AssociatedControlID="DdlGroups" Text="Группа" />
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="DdlGroups" AutoPostBack="False" EnableViewState="False" />
                </td>
                <td>
                    <span class="info-label">Только для студентов</span>
                </td>
            </tr>
            <tr id="InputsForParent" class="hidden">
                <td>
                    <asp:Label runat="server" AssociatedControlID="DdlChilds" Text="Ваш ребенок" />
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="DdlChilds" AutoPostBack="False" EnableViewState="False" />
                </td>
                <td>
                    <span class="info-label">Только для родителей</span>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <asp:Button runat="server" ID="BtnRegister" Text="Зарегистрироваться" EnableViewState="False" CssClass="button" OnClick="BtnRegister_OnClick" />
                </td>
            </tr>
        </table>

    </section>

</asp:Content>
